#include "chartool.h"
#include <cctype>

bool chainsaw::is_upper(unsigned char c) { return std::isupper(c); }

bool chainsaw::is_lower(unsigned char c) { return std::islower(c); }

unsigned char chainsaw::to_upper(unsigned char c) { return std::toupper(c); }

unsigned char chainsaw::to_lower(unsigned char c) { return std::tolower(c); }

bool chainsaw::is_alpha(unsigned char c) { return std::isalpha(c); }

bool chainsaw::is_digit(unsigned char c) { return std::isdigit(c); }

bool chainsaw::is_alnum(unsigned char c) { return std::isalnum(c); }

bool chainsaw::is_word_char(unsigned char c) { return is_alpha(c) || is_digit(c) || c == '-' || c == '_' || c == '.'; }

bool chainsaw::is_punct(unsigned char c) { return std::ispunct(c); }

bool chainsaw::is_space(unsigned char c) { return std::isspace(c); }

bool chainsaw::is_hexdigit(unsigned char c) { return std::isxdigit(c); }

bool chainsaw::is_print(unsigned char c) { return std::isprint(c); }
